package com.senven.permission.controller;


import com.senven.common.vo.CommonResult;
import com.senven.permission.service.IRolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 角色权限 前端控制器
 * </p>
 *
 * @author YSH
 * @since 2022-09-19
 */
@RestController
@RequestMapping("/permission/role-permission")
public class RolePermissionController {

    @Autowired
    private IRolePermissionService rolePermissionService;

    @PostMapping("/fen")
    public CommonResult fenQuanXian(Integer roleid, @RequestBody List<Integer> ids){
        return  rolePermissionService.fen(roleid,ids);
    }

}
